﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Seym
{
    public class KoordinatComparer : IEqualityComparer<Koordinat>
    {
        private static KoordinatComparer _comparer;
        public static KoordinatComparer GetComparer()
        {
            if (_comparer == null)
                _comparer = new KoordinatComparer();

            return _comparer;
        }

        public bool Equals(Koordinat x, Koordinat y)
        {
            if (x.X == y.X && x.Y == y.Y)
                return true;
            else
                return false;
        }

        public int GetHashCode(Koordinat obj)
        {
            throw new NotImplementedException();
        }
    }
}
